package recommendImpl;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.eos.system.annotation.Bizlet;

public class Getrecommendprocessid {
	@Bizlet("内推工单号")
	public String getprocessid() {
		String str = null;
		int number=(int)(Math.random()*900)+100;
		Date date = new Date();
		SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
		String time = format.format(date);
		// 判断是OA创建的工单还是自建
			str = "RN_" + time + number;
		System.out.println("内推工单号=" + str);
		return str;
	}
	
	
	

	public static void main(String[] args) {
		// TODO 自动生成的方法存根
		Getrecommendprocessid getcommend = new Getrecommendprocessid();
		getcommend.getprocessid();
	}

}
